import Loadable from "react-loadable";
import Loading from "../components/loading";

const Home = Loadable({
    "loader": () => import("./home"),
    "loading": PageLoading
});

const Map = Loadable({
    "loader": () => import("./map"),
    "loading": PageLoading
});

function PageLoading(props){
    return <Loading size='large' masker={false} loading={true}/>
}

export { 
    Home, 
    Map
};